//
//  UIImage+Scale.swift
//  WeiBoShiBing
//
//  Created by Bingo on 15/11/10.
//  Copyright © 2015年 Bingo. All rights reserved.
//

import UIKit

extension UIImage{

    func displaySize()->CGSize{
    
        let newWidth = UIScreen.mainScreen().bounds.width
        
        let newHeight = newWidth * size.height / size.width
        
        let newSize = CGSize(width: newWidth, height: newHeight)
        
        return newSize
    }

}
